strs = ["flower","fsow","flight"]
for i in range(len(strs[0])):
    for str in strs:
        m=strs[0][i]
        s=str[i]
        if len(str) <= i or strs[0][i] != str[i]:
            print(strs[0][:i])